package com.wing.order.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wing.order.model.entity.OrderDeliveryDetail;
import com.wing.order.model.request.OrderDeliveryDetailForm;
import com.wing.order.model.response.OrderDeliveryDetailVO;
import com.wing.order.model.response.ScanDeliveryVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 配送明细-Service
 *
 * @author
 */
public interface OrderDeliveryDetailService extends IService<OrderDeliveryDetail> {

    /**
     * 添加
     *
     * @param orderDeliveryDetailForm
     * @return
     */
    int add(OrderDeliveryDetailForm orderDeliveryDetailForm);

    /**
     * 列表-app
     *
     * @param params
     *
     * @return
     */
    List<OrderDeliveryDetailVO> list4app(Map<String, Object> params);

    /**
     * 分页list-app
     *
     * @param page
     * @param params
     *
     * @return
     */
    Page<OrderDeliveryDetailVO> pageList4app(Page page, Map<String, Object> params);

    /**
     * 详情-app
     *
     * @param id
     *
     * @return
     */
    OrderDeliveryDetailVO get4appById(Long id);

    /**
     * 签收明细
     */
    List<OrderDeliveryDetailVO>signDetail(String skuCode);

    /**
     * 添加签收信息 领货
     */
    ScanDeliveryVo scanPickupInfo(String packLabelCode, String deliveryOrderCode);


    Integer countNotFinish(Long deliveryDetailId);



}
